x = foo
y = $(x)b
x = new

.PHONY: test

test:
	@echo "x is $(x)"
	@echo "y is $(y)"
